﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Watch_It
{
    class Camera
    {
        public Vector3 Position
        {
            get { return _position; }
            set { _position = value; }
        }
        private Vector3 _position;

        public Vector3 Cible
        {
            get { return _cible; }
            set { _cible = value; }
        }
        private Vector3 _cible;

       public Matrix Vue
        {
            get { return _vue; }
            set { _vue = value; }
        }
        private Matrix _vue;

        public Matrix Perspective
        {
            get { return _perspective; }
            set { _perspective = value; }
        }
        private Matrix _perspective;

        public void Actualiser(Vector3 positionPerso)
        {
            Position = positionPerso + new Vector3(0f, 0f, -50f);
            Position = new Vector3(Position.X, 20f, Position.Z);
            Cible = positionPerso;
            Cible = new Vector3(Cible.X, 25f, Cible.Z);
            Vue = Matrix.CreateLookAt(Position, Cible, Vector3.Up);
        }
    }
}
